package com.deer.wms.ASN.manage.model.in;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;

/**
 * @author guo
 */
@Getter
@Setter
@NoArgsConstructor
@Table(name = "accept_record")
public class AcceptRecord {
    private static final long serialVersionUID = -5835640530808832030L;
    /**
     * ID
     */
    @Id
    @Column(name = "id")
    @TableId(type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 收货单编码
     */
    private String acceptRecordCode;

    /**
     * 仓库ID
     */
    @Column(name = "ware_id")
    private Integer wareId;

    /**
     * 仓库
     */
    private String wareName;

    /**
     * 货主ID
     */
    private Integer organizationId;

    /**
     * 货主
     */
    private String organizationName;

    /**
     * 物料编码
     */
    private String itemCode;

    /**
     * 物料名称
     */
    private String itemName;

    /**
     * 规格
     */
    private String spec;

    /**
     * 型号
     */
    private String model;

    /**
     * 物料照片URL
     */
    private String imgUrl;

    /**
     * 批次ID
     */
    @Column(name = "batch_id")
    private Integer batchId;

    /**
     * 批次
     */
    @Column(name = "batch_name")
    private String batchName;

    /**
     * 箱号
     */
    @Column(name = "box_code")
    private String boxCode;

    /**
     * 收货库位
     */
    @Column(name = "cell_code")
    private String cellCode;

    /**
     * 包装ID
     */
    @Column(name = "pack_detail_id")
    private Integer packDetailId;

    /**
     * 包装描述
     */
    @Column(name = "pack_describe")
    private String packDescribe;

    /**
     * 计划数量
     */
    private Double expectQuantity;

    /**
     * 收货数量
     */
    private Double quantity;

    /**
     * 单据类型
     */
    private Integer billType;

    /**
     * 备注
     */
    private String memo;

    /**
     * ASN单号
     */
    private String asnBillNo;

    /**
     * ASN详情单号
     */
    private String asnDetailNo;

    /**
     * 运单号
     */
    private String shipBillNo;

    /**
     * 采购详情单号
     */
    private String requestDetailDetailNo;

    /**
     * 计划包装ID
     */
    private Integer expectPackDetailId;

    /**
     * 计划包装
     */
    private String expectPackDescribe;

    /**
     * 转换率
     */
    private Double transRatio;

    /**
     * 计划转换率
     */
    private Double expectTransRatio;

    /**
     * 库存ID
     */
    private Integer inventoryId;

    /**
     * 状态 0-新建 2-已确认
     */
    private Integer state;

    /**
     * 质检状态  0-免检  1-待检  2-已检
     */
    private Integer qcState;

    /**
     * 异常ID
     */
    private Integer acceptExId;

    /**
     * 收货人ID
     */
    @Column(name = "accept_user_id")
    private Integer acceptUserId;

    /**
     * 收货人
     */
    @Column(name = "accept_user_name")
    private String acceptUserName;

    /**
     * 收货时间
     */
    private String acceptTime;

    private String isTransmit;//是否传输
}
